package com.mrs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mrs.common.ResponseResult;
import com.mrs.dto.ArticleDto;
import com.mrs.entity.Article;


/**
 * 文章表(Article)表服务接口
 *
 * @author makejava
 * @since 2022-08-05 22:28:56
 */
public interface ArticleService extends IService<Article> {
    //查询热门文章，封装成ResponseResult返回
    ResponseResult hotArticleList();

    //查询文章列表
    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    //查询文章详情
    ResponseResult getArticleDetail(Long id);

    //当更新浏览量时去更新redis数据
    ResponseResult updateViewCount(Long id);

    //新增文章
    ResponseResult addArticle(ArticleDto articleDto);
}

